package threading;



public class Exeicises {
    public static void main(String[] args) throws InterruptedException {
        for (int i = 1; i <= 20; i++) {
            int mun = i;
            Thread t = new Thread(new Runnable(){
                @Override
                public void run() {
                    System.out.println(mun);
                }
            });
            t.start();
            t.join();
        }
        System.out.println("main线程执行");

    }
}
